package com.briup.es.client;

import com.briup.es.config.response.Result;
import com.briup.es.domain.bean.Shopcar;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("shopcar-service")
public interface ShopcarClient {

    @PostMapping("/shopCar/queryByIds")
    Result<List<Shopcar>> queryByIds(@RequestBody List<Integer> ids);

    @DeleteMapping("/shopCar/")
    Result<?> deleteShopcar(@RequestBody List<Integer> ids);
}
